<?php
include($classes_path.'/class.osInfo.php');
$this_os = new os();
$this_os->set_page($pageid);
$this_os->set_os($os);
print('<h1>'.ucfirst($this_os->get_osname()).'</h1>');
print('<p class="summary">'.ucfirst($this_os->get_summary()).'</p>');
print('<p>'.ucfirst($this_os->get_history()).'</p>');
?>
<div class="infobox">
    <table id="mytable" cellspacing="0" summary="Additional details of the Operating system">
        <tr>
            <th scope="row">Kernel name</th>
            <th scope="col" class="spec"><?php print(ucfirst($this_os->get_kernelName())); ?></th>
        </tr>
        <tr>
            <th scope="row">Kernel type</th>
            <th scope="col" class="specalt"><?php print(ucfirst($this_os->get_kernelType())); ?></th>
        </tr>
        <tr>
            <th scope="row">Filesystem</th>
            <th scope="col" class="spec"><?php print(ucfirst($this_os->get_fileSystem())); ?></th>
        </tr>
        <tr>
            <th scope="row">popular distro's</th>
            <?php
            $distList = $this_os->get_distros();
            if(!empty($distList)){
                foreach($distList as $distro){
                    print('<th scope="row" class="specalt">'.$distro.'</th> ');
                }
            }
            ?>
        </tr>
        <tr>
            <th scope="row">Similar to:</th>
            <?php
            $similarOS = $this_os->get_similar();
            if(!empty($similarOS)){
                foreach($similarOS as $os){
                    if($os['osname'] != $this_os->get_osname())
                    {
                        print('<th scope="row" class="spec">'.$os['osname'].'</th> ');
                    }
                }
            }
            ?>
        </tr>
    </table>
</div>